package com.poster.mappers;

import com.poster.entity.po.Role;
import com.poster.entity.po.RolePermission;
import com.poster.entity.query.RolePermissionQuery;
import com.poster.entity.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.*;

public interface RolePermissionMapper {

    int insertBatch(List<RolePermission> list);

    int deleteByRoleId(Integer roleId);

    List<RolePermission> selectList(@Param("query") RolePermissionQuery query);

    List<RolePermission> selectPermissionCodeList(@Param("query") RolePermissionQuery query);

}
